package org.NooLab.glue.components;

import java.text.DecimalFormat;




public class MonitorStatistics {

	double ratePerSecond = 0.0;
	double averageMsgSize = 0.0;
	double bytesPerSeconds = 0.0;
	
	double timeSpread = 1.0;
	int count ;
	long heapedSize ;
	
	
	
	
	public MonitorStatistics(){
		
	}

	public void recalc(){
		
		 
		ratePerSecond = (double)((double)(1.0*count)/((double)(1.0*timeSpread ))) ;
		
		bytesPerSeconds = (double)((double)(1.0*heapedSize)/((double)(1.0*timeSpread )));
		
	}

	public double getRatePerSecond() {
		
		return ratePerSecond;
	}


	public double getAverageMsgSize() {
		return averageMsgSize;
	}


	public double getBytesPerSeconds() {
		return bytesPerSeconds;
	}


	public int getCount() {
		return count;
	}


	public long getHeapedSize() {
		return heapedSize;
	}


	public void setRatePerSecond(double ratePerSecond) {
		this.ratePerSecond = ratePerSecond;
	}


	public void setAverageMsgSize(double averageMsgSize) {
		this.averageMsgSize = averageMsgSize;
	}


	public void setBytesPerSeconds(double bytesPerSeconds) {
		this.bytesPerSeconds = bytesPerSeconds;
	}


	public void setCount(int count) {
		this.count = count;
	}


	public void setHeapedSize(long heapedSize) {
		this.heapedSize = heapedSize;
	}
	
	
	
}
